<template>
  <div class="diagnosis_index">
    <div
      class="diagnosis_index-button"
      @click="$router.push('/inAnalysis/diagnosisHishtory')"
    >
      <div class="btn">查看历史诊断记录</div>
    </div>
    <div class="diagnosis_index-bgu mt_14">
      <div class="bgu_top">
        引流商品选不好？ 人气数据上不来？ 投流计划出不去？ 直播间没销量？
      </div>
      <div class="bgu_center">
        查账号
        <div class="dian"></div>
        看直播
        <div class="dian"></div>
        一键诊断
      </div>
      <div class="bgu_btn">
        <div
          class="to-diagnosis"
          :class="{ 'hvr-ripple-out': showAnimation }"
          @mouseenter="showAnimation = true"
          @mouseleave="showAnimation = false"
          @click="$router.push('/inAnalysis/diagnosisSearch')"
        >
          开始诊断
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DiagnosisIndex",
  data() {
    return {
      showAnimation: false
    };
  },
  props: {},
  watch: {},
  components: {},
  computed: {},
  created() {
    document.title = "账号诊断&智能分析服务平台-掌上精选";
  },
  mounted() {},
  methods: {}
};
</script>

<style lang="less" scoped>
.diagnosis_index {
  min-height: calc(100vh - 62px);
}
.diagnosis_index-button {
  height: 90px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  .btn {
    width: 142px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    border: 1px solid #fd7f2c;
    border-radius: 100px;
    font-size: 12px;
    color: #fd7f2c;
    box-sizing: border-box;
  }
}
.diagnosis_index-button:hover {
  cursor: pointer;
}
.diagnosis_index-bgu {
  height: 782px;
  // background-color: skyblue;
  background: url("~@/assets/shi/bgc.png") no-repeat;
  background-size: 100% 100%;
  border-radius: 10px;
  .bgu_top {
    width: 100%;
    height: 100px;
    text-align: center;
    line-height: 170px;
    color: #fff;
    overflow: hidden;
  }
  .bgu_center {
    width: 100%;
    height: 92px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    .dian {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background-color: #fff;
      margin: 0 20px;
    }
  }
  .bgu_btn {
    display: flex;
    justify-content: center;
    .to-diagnosis {
      width: 180px;
      height: 68px;
      line-height: 68px;
      text-align: center;
      border-radius: 200px;
      font-size: 18px;
      color: #fff;
      background-color: #ff7418;
    }
    .hvr-ripple-out {
      // display: inline-block;
      vertical-align: middle;
      transform: perspective(1px) translateZ(0);
      box-shadow: 0 0 1px transparent;
      position: relative;
    }
    .hvr-ripple-out:before {
      content: "";
      position: absolute;
      border: #ff7419 solid 6px;
      border-radius: 34px;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      animation-name: example;
      transition: all 0.18s ease-out 0s;
      -webkit-animation-duration: 1s;
      animation-duration: 1s;
      animation-fill-mode: forwards;
    }
    @keyframes example {
      0% {
        transform: scale(1, 1);
        opacity: 1;
      }
      100% {
        transform: scale(1.2, 1.4);
        opacity: 0;
      }
    }
  }
  .bgu_btn:hover {
    cursor: pointer;
  }
}
</style>
